home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / examples / doc / cntour02 < prev    next >
Text File  |  1997-07-08  |  760b  |  26 lines

  1. ; This batch file creates a contour plot used as an example in
  2. ; Chapter 11, "Plotting Multi-dimensional Arrays", of _Using IDL_.
  3.  
  4. ; Restore variables elev, X, and Y.
  5.  
  6. @cntour01
  7.  
  8. ; Set missing data points to a large value.
  9.  
  10. elev(WHERE(elev EQ 0)) = 1E6    
  11.  
  12. ; REBIN down to a 72 x 92 matrix.
  13.  
  14. new = REBIN(elev, 360/5, 460/5)    
  15.  
  16. ; Make the plot, specifying the contour levels, missing data value,
  17. ; linestyles, etc. Set the STYLE keywords to 1, obtaining exact axes. 
  18.  
  19. CONTOUR, new, X, Y, LEVELS = 2750 + FINDGEN(6) * 250., $
  20.     XSTYLE = 1, YSTYLE = 1, YMARGIN = 5, MAX_VALUE = 5000, $
  21.     C_LINESTYLE = [1, 0], $
  22.     C_THICK = [1, 1, 1, 1, 1, 3], $
  23.     TITLE = 'Maroon Bells Region', $
  24.     SUBTITLE = '250 meter contours', $
  25.     XTITLE = 'UTM Coordinates (KM)'    
  26.